package cn.wk.domain;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wk
 * @since 2021-03-18
 */
@TableName("t_moveticket_buy")
public class MoveticketBuy extends Model<MoveticketBuy> {

    private static final long serialVersionUID = 1L;

    private Long id;
    /**
     * 购买的电影的ID
     */
    @TableField("movie_id")
    private Long movieId;
    /**
     * 购买了几张票
     */
    private Integer number;
    /**
     * 哪个用户购买的
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 取票码是什么
     */
    @TableField("ticket_code")
    private String ticketCode;
    /**
     * 支付金额
     */
    @TableField("pay_amount")
    private BigDecimal payAmount;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMovieId() {
        return movieId;
    }

    public void setMovieId(Long movieId) {
        this.movieId = movieId;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getTicketCode() {
        return ticketCode;
    }

    public void setTicketCode(String ticketCode) {
        this.ticketCode = ticketCode;
    }

    public BigDecimal getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(BigDecimal payAmount) {
        this.payAmount = payAmount;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "MoveticketBuy{" +
        ", id=" + id +
        ", movieId=" + movieId +
        ", number=" + number +
        ", userId=" + userId +
        ", ticketCode=" + ticketCode +
        ", payAmount=" + payAmount +
        "}";
    }
}
